﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QN_DiemSV.Forms
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        void LoadForm(Form frm)
        {
            Form fMain = frmMain.ActiveForm;
            foreach (Form f in frm.MdiChildren)
            {
                if (f.Name == "frmTTSV")
                {
                    f.Activate();
                    return;
                }
            }
            Form frmGV = new frmTTSV();
            frmGV.MdiParent = this;
            //Closeform("frmGiangVien");
            frmGV.Show();
            frmGV.Top = 0;
            frmGV.Left = 0;
        }
        private void btl1_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;
            Form frmSV = new frmTTSV();
            frmSV.MdiParent = this;
            frmSV.Show();
            frmSV.Top = 0;
            frmSV.Left = 0;
        }

        private void btl2_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;
            Form frm1 = new frmGV();
            frm1.MdiParent = this;
            frm1.Show();
            frm1.Top = 0;
            frm1.Left = 0;
        }

        private void btl3_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;
            Form frm1 = new frmDSV();
            frm1.MdiParent = this;
            frm1.Show();
            frm1.Top = 0;
            frm1.Left = 0;
        }

        private void btl4_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;
            Form frm1 = new frmKhoa();
            frm1.MdiParent = this;
            frm1.Show();
            frm1.Top = 0;
            frm1.Left = 0;
        }

        private void btl5_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;
            Form frm1 = new frmLop();
            frm1.MdiParent = this;
            frm1.Show();
            frm1.Top = 0;
            frm1.Left = 0;
        }

        private void btl6_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;
            Form frm1 = new frmMH();
            frm1.MdiParent = this;
            frm1.Show();
            frm1.Top = 0;
            frm1.Left = 0;
        }
    }
}
